import { createHashRouter } from 'react-router-dom';

/**
 * Components
 */
import PageIndex from '@/pages/index';
import PageCreate from '@/pages/create';
import PagePreview from '@/pages/preview';
import PageShare from '@/pages/share';

export const router = createHashRouter([
    {
        element: <PageIndex />,
        path: '/',
    },
    {
        path: '/create',
        element: <PageCreate />,
    },
    {
        path: '/preview',
        element: <PagePreview />,
    },
    {
        path: '/share',
        element: <PageShare />,
    },
]);
